public class B {
    public B(){
        func();
    }

    public void func(){
        System.out.println("B.func()");
    }
}
